{% load partial_template %}
{% load site_user %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>MDCS Sport - {% block additional_title %}{% endblock %}</title>
        <link type="text/css" href="/mdcs/media/css/style.css" rel="stylesheet"/>
		<link type="text/css" href="/mdcs/media/css/tablesorter/tablesorter.css" rel="stylesheet"/>
			
		
		
		<link rel="stylesheet" href="/mdcs/media/js/dropSlideMenu/jquery.dropSlideMenu.css" type="text/css" media="all">
		<script type="text/javascript" src="/mdcs/media/js/jQuery/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="/mdcs/media/js/dropSlideMenu/jquery-ui-1.7.2.custom.min.js"></script>
		<script type="text/javascript" src="/mdcs/media/js/dropSlideMenu/jquery.event.hover.js"></script>
		<script type="text/javascript" src="/mdcs/media/js/dropSlideMenu/jquery.dropSlideMenu.js"></script>

		<script type="text/javascript">
			$(document).ready(function() {
				$("#navigation").dropSlideMenu({
					indicators: true, // adds a div to the list items for attaching indicators (arrows)
					clickstream: true, // highlights the clickstream in a menu by comparing the links to the current URL path
					openEasing: "easeOutQuad", // open animation effect
					closeEasing: "easeInQuad", // close animation effect
					duration: 200, // speed of drop down animation (in milliseconds)
					delay: 200, // delay before the drop down closes (in milliseconds)
					hideSelects: true // hide all select elements on the page when the menu is active (IE6 only)
				});
			});
		</script>
		
        {% block additional_head %}{% endblock %} 
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div id="header_image">
                	<a href="/mdcs/"><img src="/mdcs/media/images/mdcs.png" alt="MDCS" width="239" height="102" style="margin-top: 10px;"/>
                	</a>
                </div>
                <div id="logInfo">
                	{% if user.is_authenticated %}
                		Ulogovani ste kao {{ user.get_profile }}
                		| <a href="/mdcs/profile/">Profil</a>
                		| <a href="/mdcs/logout/">Odjava</a>
                		<br/>
                		Broj bodova (šah): {{ user.get_profile.chess_points }}
                		<br/>
                		Broj bodova (stoni fudbal): {{ user.get_profile.tf_points }}
                		<br/>
                		Broj bodova (fudbal): {{ user.get_profile.football_points }}
                		<br/>
                		Broj bodova (basket): {{ user.get_profile.basket_points }}
                		<br/>
                	{% else %}
                		Niste ulogovani
                		| <a href="/mdcs/login/">Prijava</a>
                	{% endif %}
                </div>
            </div><!-- end header -->
            <div id="navigation">
                <ul>
                    <li>
                        <a href="/mdcs/">Početna</a>
						<ul>
							<li><a href="/mdcs/news">Vesti</a></li>
							{% if perms.mdcsapp.add_news %}							
							<li><a href="/mdcs/news/edit/">Dodaj vest</a></li>
							{% endif %}
							{% if user.is_authenticated %}
							<li><a href="/mdcs/profile">Profil</a></li>
							{% endif %}
							<li><a href="/mdcs/head2head/">Head2Head</a></li>
							<li><a href="/mdcs/recommended/">Preporuke danas</a></li>
                    		{% if perms.mdcsapp.add_match %}
                    		<li><a href="/mdcs/add_match/">Unesi meč</a></li>
                    		{% endif %}
						</ul>
                    </li>
                    <li>
                    	<a href="/mdcs/chess/">Šah</a>
                    	<ul>
                    		<li><a href="/mdcs/matches/chess/">Mečevi</a></li>
                    		<li><a href="/mdcs/standings/chess/">Tabela</a></li>
                    		<li><a href="/mdcs/statistics/chess/">Statistike</a></li>
                    		<li><a href="/mdcs/timeline/chess/">Kretanje poena</a></li>
                    	</ul>
                    </li>
                    <li>
                    	<a href="/mdcs/table_football/">Stoni fudbal</a>
                    	<ul>
                    		<li><a href="/mdcs/matches/table_football/">Mečevi</a></li>
                    		<li><a href="/mdcs/standings/table_football/">Tabela</a></li>
                    		<li><a href="/mdcs/statistics/table_football/">Statistike</a></li>
                    		<li><a href="/mdcs/timeline/table_football/">Kretanje poena</a></li>
                    	</ul>
                    </li>
                    <li>
                    	<a href="/mdcs/football/">Fudbal</a>
                    	<ul>
                    		<li><a href="/mdcs/matches/football/">Mečevi</a></li>
                    		<li><a href="/mdcs/standings/football/">Tabela</a></li>
                    		<li><a href="/mdcs/statistics/football/">Statistike</a></li>
                    		<li><a href="/mdcs/timeline/football/">Kretanje poena</a></li>
                    	</ul>
                    </li>
                    <li>
                    	<a href="/mdcs/basketball/">Basket</a>
                    	<ul>
                    		<li><a href="/mdcs/matches/basketball">Mečevi</a></li>
                    		<li><a href="/mdcs/standings/basketball/">Tabela</a></li>
                    		<li><a href="/mdcs/statistics/basketball/">Statistike</a></li>
                    		<li><a href="/mdcs/timeline/basketball/">Kretanje poena</a></li>
                    	</ul>
                    </li>
                    <li>
                    	<a href="/mdcs/about/">Pomoć</a>
                    	<ul>
                    		<li><a href="/mdcs/about/scoring/">O bodovanju</a></li>
                    		<li><a href="/mdcs/about/recommended/">O preporukama</a></li>
                    		<li><a href="/mdcs/about/">O sajtu</a></li>
                    	</ul>
                    </li>
                </ul>
            </div>			
            <div id="content">
				{% if messages %}
				<ul class="simpleNumbering">
					{% for message in messages %}
					<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
					{% endfor %}
				</ul>
				{% endif %}
				
                {% block content %}{% endblock %}
            </div>
            <div id="footer">
                <ul>
                    <li>
                        <a class="linkblock" href="/mdcs/standings/" title="Tabele"></a>
                        <img src="/mdcs/media/images/standings.png" alt="Tabele" /><h4>Tabele</h4>
                        <p>
                            Pogledajte tabele.
                        </p>
                    </li>
                    <li>
                        <a class="linkblock" href="/mdcs/statistics/" title="Statistike"></a>
                        <img src="/mdcs/media/images/statsIcon.png" alt="Statistike" /><h4>Statistike</h4>
                        <p>
                            Pogledajte statistike.
                        </p>
                    </li>
                    <li>
                        <a class="linkblock" href="/mdcs/head2head/" title="Head2Head"></a>
                        <img src="/mdcs/media/images/h2hIcon.png" alt="Head2Head"><h4>H2H</h4>
                        <p>
                            Uporedite igrače.
                        </p>
                    </li>
                    <li>
                        <a class="linkblock" href="/mdcs/feeds/news/" title="RSS"></a>
                        <img src="/mdcs/media/images/rss.png" alt="RSS"><h4>Vesti</h4>
                        <p>
                            Najnovija događanja na MDCS Sportu
                        </p>
                    </li>
                    <li>
                        <a class="linkblock" href="/mdcs/feeds/matches/" title="RSS"></a>
                        <img src="/mdcs/media/images/rss.png" alt="RSS"><h4>Mečevi</h4>
                        <p>
                            Sveži rezultati.
                        </p>
                    </li>
                </ul>
            </div>
			</div>
        <!-- end wrapper -->
    </body>
</html>
